<template>
  <MenuNavigation />
  <div
    class="exhibits-box jy-style-height"
    id="exhibits-box-id"
    :style="{
      background: `url(${publicUrls + 'free/style9/publicStyle9Bg.png' + '?imageView2/3/format/webp'})`,
    }"
  >
    <div class="top-box">
      <div class="back-box" @click="blankHome">
        <div class="line-box"></div>
        <div class="circle-box"></div>
        <p class="back-text">返回</p>
      </div>
      <div class="title">版权声明</div>
      <div class="screen-layout"></div>
    </div>

    <div class="center-box">
      <div
        class="exhibits-bg"
        :style="{
          background: `url(${publicUrls + 'free/style9/exhibitsBg.png' + '?imageView2/3/format/webp'})`,
        }"
      >
        <div class="copyright-content" :style="{ marginTop: route.meta.loopType ? '40px' : '0' }">
          <scrollBox
            color="rgba(33, 57, 47, 0.59)"
            v-if="Scrollheights"
            :remarks="commonStore.copyrightInfo"
            :byid="234"
            :height="getScrollWComputed"
            :scroll-src="publicUrls + 'free/style9/scrollIcon.png'"
          >
            <template #solidBorder>
              <div class="solidBorder-child"></div>
            </template>
          </scrollBox>
        </div>
      </div>
    </div>
    <div class="content-door">
      <i class="iconfonts">&#xe6dd;</i>
      <span>永不落幕的展览与展示平台</span>
    </div>
  </div>
</template>

<script lang="ts">
export default defineComponent({
  name: 'style9',
});
</script>

<script setup lang="ts">
// @ts-nocheck
import MenuNavigation from '@/freeComponents/menuNavigation/index.vue';
import { publicUrls } from '@/utils/minxin';
import { commonDataStore, useProjectStore } from '@/store';
import { defineComponent, nextTick, ref, computed } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import ScrollBox from '../scrollBox.vue';

const commonStore = commonDataStore();
const store = useProjectStore();
const router = useRouter();
const route = useRoute();
const content = ref(null);
const Scrollheights = ref();

let viewportHeight = window.innerHeight;
Scrollheights.value = viewportHeight * 0.4388;
const getScrollWComputed = computed(() => {
  let rootNode = document.documentElement;

  // 获取计算后的样式
  let computedStyle = window.getComputedStyle(rootNode);

  // 读取字体大小（注意这里返回的可能是一个包含单位的字符串，如"16px"）
  let fontSize = computedStyle.fontSize;

  // 如果你需要一个数字值（不带单位）进行计算，你可能需要解析这个字符串
  // 例如，使用正则表达式或split()方法去除单位，并将结果转换为数字
  let fontSizeNumber = parseFloat(fontSize.replace(/[^0-9.-]/g, ''));
  let heights = (fontSizeNumber / 144) * 480;
  return heights;
});
const blankHome = () => {
  store.menuId = null;
  router.push({ name: route.meta.loopType ? 'exhibitionHome' : 'templateedit' });
};
</script>

<style lang="less" scoped>
.exhibits-box {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  padding: 40px 0;
}
.top-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 60px;
}
.back-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.line-box {
  flex-shrink: 0;
  width: 140px;
  height: 1px;
  background: #898172;
}
.circle-box {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #898172;
}
.back-text {
  flex-shrink: 0;
  color: #898172;
  font-family: 'SourceHanSerifCN';
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 160%; /* 28.8px */
  margin-left: 2px;
}
.title {
  flex-shrink: 0;
  color: #faeedc;
  text-align: center;
  font-family: 'SourceHanSerifCN';
  font-size: 36px;
  font-style: normal;
  font-weight: 900;
  line-height: 56px; /* 155.556% */
}
.screen-layout {
  width: 108px;
  height: 46px;
}
.copyright-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 740px;
  padding: 0 130px 0 170px;
  // margin-top: 40px;
}
::v-deep .unit-exbit-null-remarks-info {
  width: 100%;
  max-height: 740px !important;
  padding: 100px 0;
}
::v-deep .unit-exbi-remarks-info-remarks {
  max-height: 740px !important;
  p {
    color: #333;
    text-align: justify;

    /* 正文 */
    font-family: 'MicrosoftYaHei';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%; /* 32px */
  }
}
::v-deep .solid-box-parent {
  right: -20px;
}
::v-deep .solidBorder-child {
  width: 2px;
  height: 470px !important;
  background-color: #b1a693;
  opacity: 0.6;
  margin-top: 34px;
}
::v-deep .templatestyle1-scroll-box-tumb {
  img {
    width: 22px;
    height: 22px;
    margin-top: 24px;
    margin-left: 9px;
  }
}
.center-box {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  padding: 0 60px;
  margin-top: 24px;
}
.exhibits-bg {
  width: 100%;
  height: 740px;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
}
.content-door {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  opacity: 0.5;
  .iconfonts {
    font-size: 26px;
    color: #fff;
    margin-bottom: 4px;
    line-height: 32px;
  }
  span {
    font-family: PingFang SC;
    font-size: 16px;
    line-height: 32px;
    color: #fff;
    margin-left: 20px;
    padding-bottom: 7px;
  }
}
</style>
